@model EIMS.Models.Department

@{
    ViewData["Title"] = "删除部门";
}

<div class="container-fluid px-4">
    <h1 class="mt-4">@ViewData["Title"]</h1>
    <ol class="breadcrumb mb-4">
        <li class="breadcrumb-item"><a asp-controller="Home" asp-action="Index">首页</a></li>
        <li class="breadcrumb-item"><a asp-controller="Departments" asp-action="Index">部门管理</a></li>
        <li class="breadcrumb-item active">删除部门</li>
    </ol>
    
    <div class="card mb-4">
        <div class="card-header">
            <i class="fas fa-exclamation-triangle text-warning me-1"></i>
            确认删除
        </div>
        <div class="card-body">
            <div class="alert alert-danger">
                <h4>您确定要删除此部门吗？</h4>
                <p>此操作将永久删除该部门信息，且无法恢复。</p>
            </div>
            
            <dl class="row">
                <dt class="col-sm-2">
                    @Html.DisplayNameFor(model => model.Name)
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.Name)
                </dd>
                <dt class="col-sm-2">
                    @Html.DisplayNameFor(model => model.Description)
                </dt>
                <dd class="col-sm-10">
                    @Html.DisplayFor(model => model.Description)
                </dd>
                <dt class="col-sm-2">
                    @Html.DisplayNameFor(model => model.CreatedAt)
                </dt>
                <dd class="col-sm-10">
                    @Model.CreatedAt.ToString("yyyy-MM-dd")
                </dd>
            </dl>
            
            <form asp-action="Delete" method="post">
                <input type="hidden" asp-for="Id" />
                <div class="mt-3">
                    <a asp-action="Index" class="btn btn-secondary">返回列表</a>
                    <button type="submit" class="btn btn-danger">
                        <i class="fas fa-trash me-1"></i> 确认删除
                    </button>
                </div>
            </form>
        </div>
    </div>
</div> 